//
//  JSSubTableView.h
//  NiubilityProject
//
//  Created by Apple on 2018/3/19.
//  Copyright © 2018年 Apple. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "UIScrollView+EmptyDataSet.h"
#import "JSBaseDataService.h"

@interface JSSubTableView : UIView <DZNEmptyDataSetSource,DZNEmptyDataSetDelegate,JSBaseDataServiceDelegate,UITableViewDelegate,UITableViewDataSource>
/// 获取当前的 `UITableViewStyle`
@property(nonatomic, assign, readonly) UITableViewStyle style;
@property (nonatomic, strong) JSBaseDataService *dataService;

@property (nonatomic, strong, readonly) UITableView *tableView;
/** 数据源*/
@property (nonatomic, strong) NSMutableArray *dataSource;
/**隐藏头部刷新*/
@property (nonatomic, assign)   BOOL isHidenHeaderRefresh;
/**隐藏脚部加载更多*/
@property (nonatomic, assign)   BOOL isHidenFooterRefresh;
/** 下拉刷新 需要子类主动调用*/
-(void)headerRefresh;

/**
 * 上拉加载判断
 */
-(void)footerRefreshType;
-(void)layoutSubView;
-(BOOL)isShowLoigngView;
- (instancetype) initWithFrame:(CGRect)frame withStyle:(UITableViewStyle )style;
- (instancetype)initWithStyle:(UITableViewStyle)style;
// 初始化工作
- (void)didInitializedWithStyle:(UITableViewStyle)style;
@end
